package com.czh.www.domain;

import java.util.LinkedList;

public class PacketQueue {
    private static LinkedList<DataPacket> packetQueue = new LinkedList();

    public PacketQueue() {
    }

    public static DataPacket popPacket() {
        LinkedList var0 = packetQueue;
        synchronized (packetQueue) {
            return (DataPacket) packetQueue.removeFirst();
        }
    }

    public static void pushPacket(DataPacket packet) {
        LinkedList var1 = packetQueue;
        synchronized (packetQueue) {
            packetQueue.add(packet);
        }
    }
}
